Parameters
- points
Type: System.Drawing.Point[]
An array of the points where are performed the mouse move event.
- delay
Type: System.Int32[]
An array of the delay in milliseconds for each position.
- useClick
Type: System.Int32
true if necessary performs the left mouse click in the end point: otherwise false. Default value is false.
The parameter delay can be null or empty . In this case the method uses the default value of the delay. Also the length of delay and points can be different.
The following code example demonstrates uses of the MouseMove method.
| C# | Copy Code |
|---|---|
// create points Point[] points = new Point[10] { new Point(100, 100), new Point(110, 110), new Point(120, 120), new Point(130, 130), new Point(140, 140), new Point(150, 150), new Point(160, 160), new Point(170, 170), new Point(180, 180), new Point(190, 190) }; // create delay int[] delay = new int[10] { 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 }; // perform the mouve move events instance.ActiveTab.MouseMove(points, delay, false); | |
| PHP | Copy Code |
|---|---|
// create points $points = array( new System\Drawing\Point(100, 100), new System\Drawing\Point(110, 110), new System\Drawing\Point(120, 120), new System\Drawing\Point(130, 130), new System\Drawing\Point(140, 140), new System\Drawing\Point(150, 150), new System\Drawing\Point(160, 160), new System\Drawing\Point(170, 170), new System\Drawing\Point(180, 180), new System\Drawing\Point(190, 190) ); // create delay $delay = array(100, 100, 100, 100, 100, 100, 100, 100, 100, 100); // perform the mouve move events $instance->ActiveTab->MouseMove($points, $delay, false); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family